package ua.org.nuos.sdms.clientgui.client.view;

import com.vaadin.ui.Label;
import com.vaadin.ui.VerticalLayout;
import ua.org.nuos.sdms.clientgui.client.components.tabs.CustomTabSet;
import ua.org.nuos.sdms.clientgui.client.view.tabs.GroupConfigTab;
import ua.org.nuos.sdms.clientgui.client.view.tabs.GroupMembersTab;
import ua.org.nuos.sdms.clientgui.client.view.tabs.UserConfigTab;

/**
 * Created by IntelliJ IDEA.
 * User: dio
 * Date: 18.03.12
 * Time: 14:13
 * To change this template use File | Settings | File Templates.
 */
public class MainLayout extends VerticalLayout {

    public MainLayout() {
        init();
    }

    private void init() {
        setSizeFull();

        CustomTabSet tabs = new CustomTabSet();
        tabs.setSizeFull();

        tabs.addTab(new GroupMembersTab());

        tabs.addSeparator(new Label("Настройки"));
        tabs.addTab(new UserConfigTab());
        tabs.addTab(new GroupConfigTab());

        addComponent(tabs);
    }
}
